﻿
@{
    ViewBag.Title = "RandomPwd";
}

<h2>复杂密码生成</h2>
<div class="alert alert-info" role="alert">
    这是一个帮助你生成高强度密码的工具，你可以选择密码长度，是否包含标点符号，系统会自动为你生成一个高度复杂的密码。
</div>

<form>
    <div class="form-group">
        <label for="txtPwdLengthConn">密码长度</label>
        <select id="PwdLength" class="form-control" onmousedown="if(this.options.length>6){this.size=7}" onblur="this.size=0" onchange="this.size=0">
            @for (int i = ViewBag.PwdMinLength; i < ViewBag.PwdMaxLength; i++)
            {
                <option value="@i">@i</option>
            }
        </select>
    </div>
    <div class="form-group">
        <label for="containNum"><input type="checkbox" value="containNum">是否包含数字</label>
        <label for="containSmallGrapheme"><input type="checkbox" value="containSmallGrapheme">是否包含大写字母（A-Z）</label>
        <label for="containBigGrapheme"><input type="checkbox" value="containBigGrapheme">是否包含小写字母（a-z）</label>
        <label for="containSymbol"><input type="checkbox" value="containSymbol">是否包含特殊符号</label>
    </div>
    <div class="form-group">
        <div class="radio">
            <label>
                <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
                Option one is this and that&mdash;be sure to include why it's great
            </label>
        </div>
        <div class="radio">
            <label>
                <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
                Option two can be something else and selecting it will deselect option one
            </label>
        </div>
        <div class="radio disabled">
            <label>
                <input type="radio" name="optionsRadios" id="optionsRadios3" value="option3" disabled>
                Option three is disabled
            </label>
        </div>
    </div>
</form>
